package com.ego.product.feign;

import com.ego.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @program: ego
 * @description: 库存服务
 * @author: KamTang
 * @create: 2022-11-29 11:05
 **/
@FeignClient("ego-ware")
public interface WareFeign {

    /**
     * 调用远程服务ego-ware查询有库存的SKU
     * @param skuIds skuIds
     * @return @see
     * @see Result
     */
    @PostMapping("/ware/sku/in-stock")
    Result inStock(@RequestBody List<Long> skuIds);
}
